package com.esri.core.map;

import java.io.IOException;
import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.JsonToken;

/* loaded from: classes.dex */
public class EditorTrackingInfo {
    private boolean a;
    private boolean b;
    private boolean c;
    private boolean d;

    public boolean enableEditorTracking() {
        return this.a;
    }

    public boolean enableOwnershipAccessControl() {
        return this.b;
    }

    public boolean allowOthersToUpdate() {
        return this.c;
    }

    public boolean allowOthersToDelete() {
        return this.d;
    }

    public static EditorTrackingInfo fromJson(JsonParser jsonParser) throws JsonParseException, IOException {
        if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) {
            return null;
        }
        EditorTrackingInfo editorTrackingInfo = new EditorTrackingInfo();
        while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
            String currentName = jsonParser.getCurrentName();
            jsonParser.nextToken();
            if ("enableEditorTracking".equals(currentName)) {
                editorTrackingInfo.a = jsonParser.getBooleanValue();
            } else if ("enableOwnershipAccessControl".equals(currentName)) {
                editorTrackingInfo.b = jsonParser.getBooleanValue();
            } else if ("allowOthersToUpdate".equals(currentName)) {
                editorTrackingInfo.c = jsonParser.getBooleanValue();
            } else if ("allowOthersToDelete".equals(currentName)) {
                editorTrackingInfo.d = jsonParser.getBooleanValue();
            } else {
                jsonParser.skipChildren();
            }
        }
        return editorTrackingInfo;
    }
}
